package top.kaoshanji.ch08;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import top.kaoshanji.ch08.runtimeAnnotations.ButtonFrame;

import javax.swing.*;
import java.awt.*;

/**
 * 代码清单 ch08-01：注解事件处理器(8.3.2节)
 * author kaoshanji
 * ^_^
 * create time 2024/12/9 18:35
 */
public class ButtonTest {

    private static final Logger logger = LogManager.getLogger(ButtonTest.class);

    public static void main(String[] args) {
        logger.info("...代码清单 ch08-01：注解事件处理器(8.3.2节)...");

        EventQueue.invokeLater(() -> {
            var frame = new ButtonFrame();
            frame.setTitle("ButtonTest");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);
        });

    }

}
